<!DOCTYPE html>
<html>

<head>
  <title></title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="../bootstrap-5.1.3-dist/css/bootstrap.css" rel="stylesheet">
  <script src="../bootstrap-5.1.3-dist/js/bootstrap.bundle.js"></script>
</head>

<body class="container">
  <h3 align="center">设置进度条的高度</h3>
  <!--默认高度-->
  <div class="progress">
    <div class="progress-bar w-50">75%</div>
  </div><br />
  <!--设置进度条的高度为40px-->
  <div class="progress" style="height:40px">
    <div class="progress-bar w-50">50%</div>
  </div>
</body>

</html>